#ifdef __arm__
.text
.globl Switch
Switch:
    mov ip, r0
    stmia ip!, {r4 - sl, fp, sp, lr}
    mov ip, r1
    mov r0, r2
    ldmia ip, {r4 - sl, fp, sp, pc}
#else
    #error "platform not support"
#endif
